package com.hhs.storage.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author chx
 * @since 2024-10-19
 */
@Data
public class XmClazz implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 班级主键
     */
    private String id;

    /**
     * 班级名称
     */
    private String clazzName;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 班级最大人数
     */
    private Integer maxNumber;

    /**
     * 班级描述
     */
    private String remark;
    /**
     * 学校id
     */
    private String schoolId;

    @TableField(exist = false)
    private String schoolName;
    /**
     * 现有学生数
     */
    @TableField(exist = false)
    private Integer nowNumber;
}
